package com.ruoyi.jeeplus.modules.screen.fire_alarm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jeeplus.modules.screen.fire_alarm.mapper.fire_alarmMapper;
import com.ruoyi.jeeplus.modules.screen.fire_alarm.domain.fire_alarm;
import com.ruoyi.jeeplus.modules.screen.fire_alarm.service.Ifire_alarmService;

/**
 * 消防Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-26
 */
@Service
public class fire_alarmServiceImpl implements Ifire_alarmService 
{
    @Autowired
    private fire_alarmMapper fire_alarmMapper;

    /**
     * 查询消防
     * 
     * @param id 消防主键
     * @return 消防
     */
    @Override
    public fire_alarm selectfire_alarmById(Long id)
    {
        return fire_alarmMapper.selectfire_alarmById(id);
    }

    /**
     * 查询消防列表
     * 
     * @param fire_alarm 消防
     * @return 消防
     */
    @Override
    public List<fire_alarm> selectfire_alarmList(fire_alarm fire_alarm)
    {
        return fire_alarmMapper.selectfire_alarmList(fire_alarm);
    }

    /**
     * 新增消防
     * 
     * @param fire_alarm 消防
     * @return 结果
     */
    @Override
    public int insertfire_alarm(fire_alarm fire_alarm)
    {
        return fire_alarmMapper.insertfire_alarm(fire_alarm);
    }

    /**
     * 修改消防
     * 
     * @param fire_alarm 消防
     * @return 结果
     */
    @Override
    public int updatefire_alarm(fire_alarm fire_alarm)
    {
        return fire_alarmMapper.updatefire_alarm(fire_alarm);
    }

    /**
     * 批量删除消防
     * 
     * @param ids 需要删除的消防主键
     * @return 结果
     */
    @Override
    public int deletefire_alarmByIds(Long[] ids)
    {
        return fire_alarmMapper.deletefire_alarmByIds(ids);
    }

    /**
     * 删除消防信息
     * 
     * @param id 消防主键
     * @return 结果
     */
    @Override
    public int deletefire_alarmById(Long id)
    {
        return fire_alarmMapper.deletefire_alarmById(id);
    }
}
